#if !defined(AFX_UIBUTTON_H__20060218_72F5_1B46_6300_0080AD509054__INCLUDED_)
#define AFX_UIBUTTON_H__20060218_72F5_1B46_6300_0080AD509054__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////////////
//

class UILIB_API CButtonUI : public CControlUI
{
public:
   CButtonUI();

   LPCTSTR GetClass() const;
   UINT GetControlFlags() const;

   bool Activate();

   void SetText(LPCTSTR pstrText);

   void SetPadding(int cx, int cy);

   void Event(TEventUI& event);

   void DoPaint(HDC hDC, const RECT& rcPaint);
   void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue);

protected:
   SIZE m_szPadding;
   UINT m_uTextStyle;
   UINT m_uButtonState;
};

#endif // !defined(AFX_UIBUTTON_H__20060218_72F5_1B46_6300_0080AD509054__INCLUDED_)
